<span  id="fontop" style="display:none;">
订单状态操作:<{$order.opid}>
<!--<input type="button" onclick="OrderMgr.act.confirm(this)" value="确认"<{if $order.confirm == 'Y' OR $order.status != 'active'}>class="btndisabled" disabled="disabled"<{/if}> />-->
</span>
<span  id="payed" style="display:none;">
<input type="button" value="支付<{if $order.flow.payed}>...<{/if}>" <{if ($order.pay_status==1 || $order.pay_status==2 || $order.pay_status==4 || $order.pay_status==5) or $order.status != 'active'}> disabled="disabled"<{/if}> onclick="OrderMgr.act.run('<{if $order.flow.payed}>showPayed<{else}>toPayed<{/if}>', this, '<{$order.flow.payed}>')" />
</span>
<span  id="refund" style="display:none;">
<input type="button"  value="退款<{if $order.flow.refund}>...<{/if}>" <{if ($order.pay_status==0 || $order.pay_status==5) or $order.status != 'active'}> disabled="disabled"<{/if}> onclick="OrderMgr.act.run('<{if $order.flow.refund}>showRefund<{else}>toRefund<{/if}>', this, '<{$order.flow.refund}>')" />
</span>
<span  id="consign" style="display:none;">
<input type="button"  value="发货<{if $order.flow.consign}>...<{/if}>" <{if $order.ship_status == 1 || $order.status != 'active'}> disabled="disabled"<{/if}> onclick="OrderMgr.act.run('<{if $order.flow.consign}>showConsignFlow<{else}>toDelivery<{/if}>', this, '<{$order.flow.consign}>')" />
</span>
<span  id="reship" style="display:none;">
<input type="button"  value="退货<{if $order.flow.reship}>...<{/if}>" <{if ($order.ship_status==4 || $order.ship_status==0) or $order.status != 'active'}> disabled="disabled"<{/if}> onclick="OrderMgr.act.run('<{if $order.flow.reship}>showReturn<{else}>toReturn<{/if}>', this, '<{$order.flow.reship}>')" />
</span>
<span  id="finish" style="display:none;">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<input type="button"   value="完成" <{if $order.status != 'active'}> disabled="disabled"  <{else}> onclick="if(confirm('完成操作 会将该订单归档并且不允许再做任何操作，确认要执行吗？')) OrderMgr.act.run('archive', this);"<{/if}> />

<input type="button"  value="作废" <{if $order.pay_status > 0 || $order.ship_status > 0 || $order.status != 'active'}> disabled="disabled" <{else}> onclick="if(confirm('作废后该订单何将不允许再做任何操作，确认要执行吗？'))  OrderMgr.act.run('cancel', this)" <{/if}> />
</span>
<span  id="partpay" style="display:none;">
<input type="button"  value="恢复部分付款" <{if ($order.pay_status ==1 || $order.pay_status ==2) && $order.status == 'active' }>onclick="if(confirm('只有在订单付款后添加商品的才需要此操作，确认要执行吗？'))  OrderMgr.act.run('changepaystate', this)"  <{else}> disabled="disabled" <{/if}> />

<input type="button"  value="恢复已付款" <{if ($order.pay_status ==3 || $order.pay_status ==4 || $order.pay_status ==2) && $order.status == 'active' }>onclick="if(confirm('只有在订单变成部分付款后要恢复的才需要此操作，确认要执行吗？'))  OrderMgr.act.run('resumepay', this)"  <{else}> disabled="disabled" <{/if}> />
</span>
<span  id="partconsign" style="display:none;">
<input type="button"  value="恢复部分发货" <{if $order.ship_status ==1 && $order.status == 'active' }>onclick="if(confirm('只有在订单点发货后添加商品的才需要此操作，确认要执行吗？'))  OrderMgr.act.run('changeshipstate', this)"  <{else}> disabled="disabled" <{/if}> />

<input type="button"  value="恢复发货" <{if $order.ship_status ==2 && $order.status == 'active' }>onclick="if(confirm('只有在订单点发货后添加商品的才需要此操作，确认要执行吗？'))  OrderMgr.act.run('resumeshipstate', this)"  <{else}> disabled="disabled" <{/if}> />
</span>
<label><{if $order.status == 'dead'}><{t}>[已作废]<{/t}><{elseif $order.status == 'finish'}><{t}>[已完成]<{/t}><{/if}></label>

<script>

var loginname = Cookie.read('SHOPEX_LOGIN_NAME');
if(loginname == 'enjoying7' || loginname == 'dada' || loginname == '772255' || loginname == 'dingding' || loginname == 'xielin1218'){
  	$('partconsign').setStyles({display: ''});
	$('partpay').setStyles({display: ''});
	$('finish').setStyles({display: ''});
	$('reship').setStyles({display: ''});
	$('consign').setStyles({display: ''});
	$('refund').setStyles({display: ''});
	$('payed').setStyles({display: ''});
	$('fontop').setStyles({display: ''});
}
else if(loginname == 'aming') {
  	$('partconsign').setStyles({display: ''});
	$('partpay').setStyles({display: 'none'});
	$('finish').setStyles({display: 'none'});
	$('reship').setStyles({display: ''});
	$('consign').setStyles({display: ''});
	$('refund').setStyles({display: ''});
	$('payed').setStyles({display: 'none'});
	$('fontop').setStyles({display: ''});
}
else if(loginname == 'afei') {
  	$('partconsign').setStyles({display: ''});
	$('partpay').setStyles({display: 'none'});
	$('finish').setStyles({display: 'none'});
	$('reship').setStyles({display: 'none'});
	$('consign').setStyles({display: ''});
	$('refund').setStyles({display: 'none'});
	$('payed').setStyles({display: 'none'});
	$('fontop').setStyles({display: ''});
}
else if(loginname == 'ahong') {
	$('partconsign').setStyles({display: 'none'});
	$('partpay').setStyles({display: 'none'});
	$('finish').setStyles({display: 'none'});
	$('reship').setStyles({display: ''});
	$('consign').setStyles({display: 'none'});
	$('refund').setStyles({display: ''});
	$('payed').setStyles({display: 'none'});
	$('fontop').setStyles({display: ''});
}
else{
	$('partconsign').setStyles({display: 'none'});
	$('partpay').setStyles({display: 'none'});
	$('finish').setStyles({display: 'none'});
	$('reship').setStyles({display: 'none'});
	$('consign').setStyles({display: 'none'});
	$('refund').setStyles({display: 'none'});
	$('payed').setStyles({display: 'none'});
	$('fontop').setStyles({display: 'none'});

}

</script>